package com.geek.novel.entity

import com.geek.novel.utils.SnowIdUtil
import io.realm.RealmObject
import io.realm.annotations.Ignore
import io.realm.annotations.PrimaryKey
import io.realm.annotations.RealmClass
import java.util.*


/**
 * 搜索历史
 * @Author Hydra
 * @Date 2022/9/19 13:37
 */
@RealmClass
open class SearchHistory : RealmObject() {

	/**
     * id
     */
	@PrimaryKey
    open var id: Long = 0

	/**搜索历史*/
	open var searchText: String = ""

	/**搜索次数*/
	open var count: Int = 0

	/**搜索日期*/
	open var searchTime: Long = 0


	fun initEntity(){
		this.id = SnowIdUtil.getInstance().nextId()
	}

}